using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KPIS.GERP.GBMS.MODEL
{
    [Serializable]
    public class OptionInfo
    {
        private int seq;
        private string code;
        private string name;
        private string descr;
        private string status;
        private int optType;
        private Nullable<int> year;
        private OptionInfo optParent;
        private UserRecordInfo usrInfo;

        public OptionInfo()
        {

        }

        public OptionInfo(int seq)
        {
            this.seq = seq;
        }

        public OptionInfo(int seq, string code, string name, string descr, string status, int optType, Nullable<int> year, OptionInfo optParent, UserRecordInfo usrInfo)
        {
            this.seq = seq;
            this.code = code;
            this.name = name;
            this.descr = descr;
            this.status = status;
            this.optType = optType;
            this.year = year;
            this.optParent = optParent;
            this.usrInfo = usrInfo;
        }

        public virtual void Dispose()
        {

        }

        public int Sequence
        {
            get
            {
                return seq;
            }
            set
            {
                seq = value;
            }
        }

        public string Code
        {
            get
            {
                return code;
            }
            set
            {
                code = value;
            }
        }

        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        public string Description
        {
            get
            {
                return descr;
            }
            set
            {
                descr = value;
            }
        }

        public string Status
        {
            get
            {
                return status;
            }
            set
            {
                status = value;
            }
        }
        
        public int Type
        {
            get
            {
                return optType;
            }
            set
            {
                optType = value;
            }
        }

        public Nullable<int> Year
        {
            get
            {
                return year;
            }
            set
            {
                year = value;
            }
        }

        public OptionInfo Parent
        {
            get
            {
                return optParent;
            }
            set
            {
                optParent = value;
            }
        }

        public UserRecordInfo User
        {
            get
            {
                return usrInfo;
            }
            set
            {
                usrInfo = value;
            }
        }
    }
}